package com.spboot.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.spboot.entity.Information;
import com.baomidou.mybatisplus.extension.service.IService;
import com.spboot.entity.Like;
import com.spboot.page.PageInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author guocb
 * @since 2020-04-27
 */
public interface InformationService extends IService<Information> {
    List<Long> selectid();
    List<Information> selecttype(Long typeid);
    List<String> selectall(Long Informationid);
    List<String> hinfor(Long typeid);
    PageInfo<Information> selectinfomation(IPage<Information> page, QueryWrapper<Information> queryWrapper);
    //查询用户订单
    IPage<Information> selectorder(Integer userid, PageInfo<Information> page, Wrapper<Information> paramWrapper);
    List<String> selectordernumber(Integer userid);

    //后台根据informationid查询类型名称和信息
    List<String> hselectinformation(Long informationid);

    //根据typeid查询这个id所有信息
    List<Information> selectdescribea(Long typeid);
    IPage<Information> selectdescribeb(Long typeid,IPage<Information> page, Wrapper<Information> paramWrapper);

    //根据informaid查询这个id所有版本
    List<String> selectdescribeversion(Long informationid);

    //根据informaid查询这个id所有颜色
    List<String> selectdescribename(Long informationid);

    //根据informaid查询这个id所有价格
    List<String> selectdescribeprice(Long informationid);

    /**
     * 修改information信息
     * @param name
     * @param describea
     * @param informationid
     * @return
     */
    int Hupdate(String name,String describea,Long informationid);

    //  和版本绑定价格
    List<String> bingprice(String versiontype,Long informationid);
}
